﻿using System;
using System.Runtime.CompilerServices;

namespace Quicklight.Mobile.Cordova.File {

   [IgnoreNamespace]
   public class FileWriter {
      /// <todo>The type for field ReadyState could not be determined from the documentation. This should be improved</todo>
      [ScriptName("readyState")]
      public object ReadyState;
      [ScriptName("fileName")]
      public string FileName;
      [ScriptName("length")]
      public long Length;
      [ScriptName("position")]
      public long Position;
      [ScriptName("error")]
      public FileError Error;
      /// <todo>The type of Callback for the OnWriteStart is not specified in the documentation. This should be improved</todo>
      [ScriptName("onwritestart")]
      public Callback OnWriteStart;
      /// <todo>The type of Callback for the OnProgress is not specified in the documentation. This should be improved</todo>
      [ScriptName("onprogress")]
      public Callback OnProgress;
      /// <todo>The type of Callback for the OnWrite is not specified in the documentation. This should be improved</todo>
      [ScriptName("onwrite")]
      public Callback OnWrite;
      /// <todo>The type of Callback for the OnAbort is not specified in the documentation. This should be improved</todo>
      [ScriptName("onabort")]
      public Callback OnAbort;
      /// <todo>The type of Callback for the OnError is not specified in the documentation. This should be improved</todo>
      [ScriptName("onerror")]
      public Callback OnError;
      /// <todo>The type of Callback for the OnWriteEnd is not specified in the documentation. This should be improved</todo>
      [ScriptName("onwriteend")]
      public Callback OnWriteEnd;

      [ScriptName("abort")]
      public void Abort() {
      }

      [ScriptName("seek")]
      public void Seek(long address) {
      }

      [ScriptName("truncate")]
      public void Truncate(long length) {
      }

      [ScriptName("write")]
      public void Write(object data) {
      }

   }

}
